﻿using UnityEngine;
using System.Collections;

public class NextLevel : MonoBehaviour
{
	public string level;

	void OnTriggerEnter2D(Collider2D coll)
	{
		if(coll.gameObject.tag == "Player")
		{
			Application.LoadLevel(level);

			Player.instance.SaveGame(1);
		}
	}

}
